<template>
    <view class="fill-base">
        <view class="pd-lg f-paragraph">
            <!-- @linkpress="linkpress" -->
            <parser :html="Privacy" show-with-animation lazy-load>加载中... </parser>
            <!-- <u-parse :content="Privacy.shop_apply"></u-parse> -->
        </view>
        <view class="space-footer"></view>
    </view>
</template>

<script>
// import { mapState, mapActions, mapMutations } from "vuex";
import parser from "./components/jyf-Parser/index";
export default {
    components: {
        parser,
    },
    data() {
        return {
            // options: {},
            // isLoad: false,
            // detail: {},
            Privacy: {}, //隐私政策
        };
    },
    // computed: mapState({
    //     primaryColor: (state) => state.config.configInfo.primaryColor,
    //     subColor: (state) => state.config.configInfo.subColor,
    //     configInfo: (state) => state.config.configInfo,
    //     userInfo: (state) => state.user.userInfo,
    //     loginPage: (state) => state.user.loginPage,
    // }),
    onLoad(options) {
        // this.options = options;
        // this.$util.showLoading();
        // this.initIndex();
    },
    onShow() {
        this.getPrivacy(); //获取隐私政策
    },
    methods: {
        // ...mapActions(["getConfigInfo", "getUserInfo"]),
        // ...mapMutations(["updateUserItem"]),
        // async initIndex(refresh = false) {
        //     let data = await this.$api.base.getConfig();
        //     this.detail = data;
        //     this.$util.setNavigationBarColor({
        //         bg: this.primaryColor,
        //     });
        //     this.$util.hideAll();
        //     this.isLoad = true;
        // },
        // initRefresh() {
        //     this.initIndex(true);
        // },
        // linkpress(res) {
        //     console.log("linkpress", res);
        //     // #ifdef APP-PLUS
        //     this.$util.goUrl({
        //         url: res.href,
        //         openType: "web",
        //     });
        //     // #endif
        // },
        //获取隐私政策接口
        async getPrivacy() {
            this.$request.get("api/wanlshop.common/yszc").then((res) => {
                console.log(res.data, "隐私政策接口");
                this.Privacy = res.data.yszc;
            });
        },
    },
};
</script>

<style lang="scss"></style>
